package com.gec.anan.rules;

import org.junit.jupiter.api.Test;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test1 {
    @Autowired
    private KieContainer kieContainer;
    @Test
    void fun(){
        KieSession kieSession = kieContainer.newKieSession();
        kieSession.fireAllRules();

        kieSession.dispose();
        System.out.println("测试结束");
    }
}
